package ui.tests;


import junit.framework.TestSuite;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.Assert;
import org.testng.annotations.Test;
import pages.HomePage;

public class smokeTest extends Basic{


        @Test
        public void testRozetka()
        {
            HomePage page = new HomePage(driver);
            page.open();
            WebElement subItem = driver.findElement(By.className("m-main-fat-link2"));

            page.getClickablePageItem(page.getProject()).click();
            Assert.assertTrue(page.isPageItemDisplayed(subItem));

            page.getClickablePageItem(page.getPhones()).click();
            Assert.assertTrue(page.isPageItemDisplayed(subItem));

            page.getClickablePageItem(page.getTvPhoto()).click();
            Assert.assertTrue(page.isPageItemDisplayed(subItem));

            page.getClickablePageItem(page.getBt()).click();
            Assert.assertTrue(page.isPageItemDisplayed(subItem));

            page.getClickablePageItem(page.getOutdoorsman()).click();
            Assert.assertTrue(page.isPageItemDisplayed(subItem));

            page.getClickablePageItem(page.getKids()).click();
            Assert.assertTrue(page.isPageItemDisplayed(subItem));

            page.getClickablePageItem(page.getHouseGarden()).click();
            Assert.assertTrue(page.isPageItemDisplayed(subItem));
        }
    }
